load("//bazel:ray.bzl", "ray_cc_library", "ray_cc_test")

ray_cc_library(
    name = "gcs_test_util_lib",
    hdrs = [
        "gcs_test_util.h",
    ],
    deps = [
        "//:gcs_service_rpc",
        "//src/ray/common:test_util",
        "//src/ray/gcs:gcs_pb_util",
    ],
)

ray_cc_test(
    name = "callback_reply_test",
    size = "small",
    srcs = ["callback_reply_test.cc"],
    tags = ["team:core"],
    deps = [
        "//src/ray/gcs:gcs_redis_client",
        "@com_google_googletest//:gtest_main",
    ],
)

ray_cc_test(
    name = "redis_async_context_test",
    size = "small",
    srcs = ["redis_async_context_test.cc"],
    args = [
        "$(location //:redis-server)",
        "$(location //:redis-cli)",
    ],
    data = [
        "//:redis-cli",
        "//:redis-server",
    ],
    tags = ["team:core"],
    deps = [
        "//src/ray/common:test_util",
        "//src/ray/gcs:gcs_redis_client",
        "//src/ray/util",
        "@com_google_googletest//:gtest_main",
    ],
)
